package day1115_2;

import javax.swing.*;
import java.awt.*;

public class W22 {
    public static void main(String[] args) {
        JFrame  win=new JFrame("斗地主");//1.  墙

        BorderLayout bLay=new BorderLayout();//3.
        JPanel  pane=new JPanel();//2.黑板
        pane.setLayout(bLay);//3.


        JButton  w=new JButton("west");//4.按钮
        pane.add(BorderLayout.WEST ,w);

        JButton  c=new JButton("center");//4.按钮
        pane.add(BorderLayout.CENTER ,c);

        JButton e=new JButton("EASt");//4.按钮
        pane.add(BorderLayout.EAST ,e);

        win.add(pane);


        win.setSize(900,850);
        win.setVisible(true);
    }
}







